//
//  MLProductCell.m
//  payDemo
//
//  Created by 魔龙 on 16/3/25.
//  Copyright © 2016年 魔龙. All rights reserved.
//

#import "MLProductCell.h"

@interface MLProductCell()
/**
 *  产品图片
 */
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
/**
 *  产品标题
 */
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
/**
 *  产品描叙
 */
@property (weak, nonatomic) IBOutlet UILabel *descLabel;
/**
 *  产品价格
 */
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@end


@implementation MLProductCell


- (void)setProduct:(MLProduct *)product{
    _product = product;
    self.iconView.image = [UIImage imageNamed:product.icon];
    self.titleLabel.text = product.title;
    self.descLabel.text = product.desc;
    self.priceLabel.text = product.price;
}


@end
